package com.iotimc.networklibrary.entity;

import java.io.File;

/**
 * Created by david on 2017/10/11.
 * @author david
 */

public class DownInfo<T> {
    /**
     * 下载完成后的file，null表示下载失败
     */
    File file;
    /**
     * 下载文件全名（扩展名也要）
     */
    String fileName;
    /**
     * 下载url 不要ip端口
     */
    String localPath;
    T obj;
    String serverMd5;
    String localMd5;
    public DownInfo( String localPath,String fileName, T obj) {
        this.localPath = localPath;
        this.fileName = fileName;
        this.obj = obj;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public String getServerMd5() {
        return serverMd5;
    }

    public void setServerMd5(String serverMd5) {
        this.serverMd5 = serverMd5;
    }

    public String getLocalMd5() {
        return localMd5;
    }

    public void setLocalMd5(String localMd5) {
        this.localMd5 = localMd5;
    }
}
